Highlight current page tab [migrated]
Posted
by
Jose David Garcia Llanos
on Pro Webmasters
See other posts from Pro Webmasters
or by Jose David Garcia Llanos
Published on 2012-03-31T17:54:35Z
Indexed on
2012/03/31
23:43 UTC
Read the original article
Hit count: 377
I am making a website, currently i am setting the highlight tab for current page, a particular page is not highlighting its tab and i have checked the code about 5 times but i cant find anything wrong with it.
the website is auto-sal.es
Here is the code:
style.css
body#home a.hometab, body#cars a.cartab, body#feedback a.feedtab, body#contact a.contacttab, body#members a.memberstab {background: #7D0000;}
contactus.html
<body id="contact">
navigation
<ul id="menu">
<li><a href="index.html" target="_self" class="hometab">Home</a></li>
<li><a href="cars.html" target="_self" class="cartab">Cars</a></li>
<li><a href="feedback.html" target="_self" class="feedtab">Feedback</a></li>
<li><a href="contactus.html" target="_self" class="cotacttab">Contact Us</a></li>
<li><a href="members.html" target="_self" class="memberstab">Members</a></li>
</ul>
Again, the issue is that it is not highlighting the tab for contact us
© Pro Webmasters or respective owner